/**
 * 弯弯工作组
 */
function friendsqzfInit(url,userId) {
	
	$("#hidTeamId").hide();
	$("#jqxTree").wjTree({url:url,userId:userId,uncheckTeamId:"-2"});
	$("#teamjqxTree").wjTree({url:url,userId:userId,uncheckTeamId:"-2"});
	$("#qzfSend").click(function(){
		var userId= $("#hidIsReferralId").val($("#jqxTree").wjGetTreeValue());
		var accepterId=$("#hidFriendId").val($("#teamjqxTree").wjGetTreeValue());
         if(userId==""){
			 $("#dialogDiv").wjDialog({url:url,content:"请选择好友送祝福"});
			 return;
         }
         if(accepterId==""){
			$("#dialogDiv").wjDialog({url:url,content:"请选择送祝福的好友"});
			return;
         }
         $("#dynamicShowType").val("qzf");
         $("#windowDiv").wjWindow({url:url,type:"qzf",accepterId:$("#hidFriendId").val(),userId:$("#hidIsReferralId").val()});
		/* $('#submitForm').ajaxSubmit({
			url : url+"referral/userDynamicShow",  
			dataType : "json",  
			type:"POST",
            success : function(data){            	
            	$("#dialogDiv").wjDialog({url:url,content:data});
            },  
            error:function(){  
            	$("#dialogDiv").wjDialog({url:url,content:"系统繁忙请稍后再试"});
           }   
		}); */
	});

}
